/*********************************************************************
 *
 *  elksip - a multi-platform Sip Phone Server
 *
 *  file: sip.h 
 *
 *  Copyright 2011-2014 Elksip.
 *
 ********************************************************************/
#ifndef _SIP_H_
#define _SIP_H_

#ifndef WIN32
#include <sys/socket.h>
#else
#include <windows.h>
#endif

#define SIP_MESSAGE_MAX_LENGTH 1300

#define RET_SUCCESS               0
#define RET_UNDEFINED_ERROR      -1
#define RET_BADPARAMETER         -2
#define RET_SIP_ERR_MSG         (-3)


#include "elk_str.h"
#include "elk_list.h"


#include "via_parse.h"
#include "contact.h"
#include "www_auth.h"
#include "elk_msg.h"

int elk_message_trying(const Elk_Message *msg, Elk_Message *msg_trying);

int handle_msg( Elk_Message * msg);


#endif

